package com.ymttest.common.enums;

/**
 * 订单取消类型
 */
public enum CancelOrderTypeEnum {
	/**
	 * 买家取消订单=1
	 */
	BuyerCancelOrder(1),

	/**
	 * 卖家取消订单=2
	 */
	SellerCancelOrder(2),

	/**
	 * 客服取消订单=3
	 */
	CustomerCancelOrder(3),

	/**
	 * 系统自动取消订单=4
	 */
	SystemCancelOrder(4),
	
	   /**
     * 风控取消订单=5
     */
	RiskControlCancelOrder(5);

	private int intValue;
	private static java.util.HashMap<Integer, CancelOrderTypeEnum> mappings;

	private synchronized static java.util.HashMap<Integer, CancelOrderTypeEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, CancelOrderTypeEnum>();
		}
		return mappings;
	}

	private CancelOrderTypeEnum(int value) {
		intValue = value;
		CancelOrderTypeEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static CancelOrderTypeEnum forValue(int value) {
		return getMappings().get(value);
	}

	public static void main(String[] args) {


	}
}